package com.csun.cmny.provider.dao;

import com.csun.cmny.provider.model.domain.DmcCsunNewBodyLocation;
import com.csun.cmny.provider.model.dto.newBody.CsunNewBodyQueryDto;
import com.csun.cmny.provider.model.vo.life.DmcDeviceByRoom;
import com.csun.cmny.provider.model.vo.newBody.CsunNewBodyVo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface DmcCsunNewBodyLocationMapper extends Mapper<DmcCsunNewBodyLocation> {

    /**
     * query dmc csun newBody and location list with page
     *
     *
     *
     * @return the list
     */
    List<CsunNewBodyVo> queryListWithPage(CsunNewBodyQueryDto csunNewBodyQueryDto);

    List<Long> selectDeviceIdByRoomId(Long roomId);

    DmcDeviceByRoom selectRoomIdByDeviceId(Long alertId);

    /**
     *
     * @param deviceId
     * @return
     */
    List<CsunNewBodyVo> listGatewayBindBodySensor(@Param("deviceId") Long deviceId);

    /*
     * @param deviceId
     * @return
    * */
    CsunNewBodyVo get(@Param("deviceId") Long deviceId);
}